local yueze = fk.CreateSkill {
  name = "lvshi__yueze",
  tags = { "Turn" },
}

Fk:loadTranslationTable{
  ["lvshi__yueze"] = "岳责",
  [":lvshi__yueze"] = "回合技，当一名手牌数为1的角色成为即时类牌的目标后，你可将此牌效果改为【过河拆桥】。",
  ["#ls__yueze-invoke"] = "岳责：你可以将%arg对%src的效果改为【过河拆桥】",

  ["$lvshi__yueze1"] = "君恩无以为报，唯尽忠力战，名节可全！",
  ["$lvshi__yueze2"] = "如不诛灭此贼，谈何为陛下分忧？",
}

yueze:addEffect(fk.TargetConfirmed, {
  anim_type = "special",
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(yueze.name) and (data.card.type == Card.TypeBasic or data.card:isCommonTrick()) then
      return target:getHandcardNum() == 1 and player:usedSkillTimes(yueze.name) == 0
    end
  end,
  on_cost = function(self, event, target, player, data)
    return player.room:askToSkillInvoke(player, { skill_name = yueze.name,
    prompt = "#ls__yueze-invoke:"..target.id.."::"..data.card:toLogString() })
  end,
  on_use = function(self, event, target, player, data)
    local use_card = data.card:clone()
    local c = table.simpleClone(data.card)
    for k, v in pairs(c) do
      use_card[k] = v
    end
    use_card.skill = Fk.skills["dismantlement_skill"]
    data.card = use_card
  end,
})

return yueze